#include "StdAfx.h"
#include "Patch.h"
#include "QuartzHook.h"
#include "WMPHook.h"

#pragma unmanaged

void* SelectQuartzMethod(int num) {
	void* proc = quartzHook[num];
	if (!proc) {
		proc = quartzSave[num];
	}
	return proc;
}

HRESULT WINAPI QuartzGetClassObjectHook(REFCLSID rclsid, REFIID riid, LPVOID *ppv) {
	SyncFuncHook(HRESULT, PDllGetClassObject, SelectQuartzMethod(0), (rclsid, riid, ppv));
}
